gtk4.git
11 years agowidget: Hook GTK_PHASE_TARGET controllers to the default event handlers
Carlos Garnacho [Sat, 10 May 2014 18:52:17 +0000 (20:52 +0200)]
widget: Hook GTK_PHASE_TARGET controllers to the default event handlers

Just call the controllers on that phase if the default widget handlers
are run.

For compatibility reasons, in the touch event handler, let the pointer
emulating touch be transformed to a pointer event as usual, in order to
have widget handlers a chance to run at all. If they have to be managed
by a controller in that phase, it'll have to be through the default pointer
event handlers.

11 years agogesture: Add GTK_PHASE_TARGET
Carlos Garnacho [Sat, 10 May 2014 18:50:23 +0000 (20:50 +0200)]
gesture: Add GTK_PHASE_TARGET

This phase is meant to run in the default widget handlers, as opposed
to externally as in the bubble/capture phase. This will be most usually
the expected phase for every controller replacing code in event handlers
in GTK+, just so invocation and triggering order is kept unaltered.

11 years agogesture: Handle GdkEventGrabBroken
Carlos Garnacho [Sat, 10 May 2014 18:46:47 +0000 (20:46 +0200)]
gesture: Handle GdkEventGrabBroken

That may happen separately from grab-notify, and also due to external
reasons, so ensure all sequences are cancelled if a grab is taken
in some GdkWindows that would obscure events on the controller.

11 years agoGtkColorSwatch: Use gesture for button events too
Matthias Clasen [Fri, 9 May 2014 23:24:27 +0000 (19:24 -0400)]
GtkColorSwatch: Use gesture for button events too

11 years agoGtkWindow: Only use a multipress gesture for toplevels
Matthias Clasen [Fri, 9 May 2014 22:55:48 +0000 (18:55 -0400)]
GtkWindow: Only use a multipress gesture for toplevels

There is no point in creating and attaching this gesture
for override-redirect windows, so don't do it.

11 years agoBe careful about the list of event controllers
Matthias Clasen [Fri, 9 May 2014 19:53:27 +0000 (15:53 -0400)]
Be careful about the list of event controllers

We can end up with _gtk_widget_remove_controller getting called
while we are iterating over the list in _gtk_widget_run_controllers.
To avoid trouble, only mark the event controller as dead by
setting data->controller to NULL, and defer the actual freeing
and list manipulation to the loop in _gtk_widget_run_controllers.
Update other places that operate on controllers to handle
data->controller being NULL.

11 years agotextview: Convert gestures' coordinates to text window ones
Carlos Garnacho [Fri, 9 May 2014 11:19:12 +0000 (13:19 +0200)]
textview: Convert gestures' coordinates to text window ones

And make some code shared between multipress/drag gesture.

11 years agotextview: Use GtkGestureDrag for text selection/DnD
Carlos Garnacho [Thu, 8 May 2014 14:28:49 +0000 (16:28 +0200)]
textview: Use GtkGestureDrag for text selection/DnD

remaining code in button press/release, motion notify, and grab
notify handlers has been shuffled to be managed by this gesture.

11 years agotextview: Use GtkGestureMultiPress for click handling
Carlos Garnacho [Wed, 7 May 2014 11:15:30 +0000 (13:15 +0200)]
textview: Use GtkGestureMultiPress for click handling

The button press handler is no longer necessary, and most of its
code has been shuffled into the GtkGestureMultiPress::pressed
handler.

11 years agowidget: tighten the conditions at which a press event is emulated
Carlos Garnacho [Wed, 7 May 2014 17:08:50 +0000 (19:08 +0200)]
widget: tighten the conditions at which a press event is emulated

Make it really sure that the event is only emitted after every gesture
that consumed the button press is done with the sequence.
The event must only be emulated if a gesture in the capture phase happened
to consume the event, be cancelled, and

11 years agowidget: Fix gesture event handler retval for bubbled events
Carlos Garnacho [Wed, 7 May 2014 17:06:42 +0000 (19:06 +0200)]
widget: Fix gesture event handler retval for bubbled events

Do not clobber the return value if the regular event handler happens
to return FALSE, even if the gesture meant to consume the event.

11 years agogesture: Prevent against sequence cancellation within gtk_gesture_set_state()
Carlos Garnacho [Wed, 7 May 2014 09:18:00 +0000 (11:18 +0200)]
gesture: Prevent against sequence cancellation within gtk_gesture_set_state()

Sequences may be cancelled within the ::sequence-state-changed handler, which
would change the points hashtable as it's being iterated in this function. So
iterate over a list of sequences and let the hashtable change freely.

11 years agogesture: Make gtk_gesture_get_last_update_time() private
Carlos Garnacho [Tue, 6 May 2014 16:22:57 +0000 (18:22 +0200)]
gesture: Make gtk_gesture_get_last_update_time() private

11 years agogesture: Remove gtk_gesture_get_last_event_type
Carlos Garnacho [Tue, 6 May 2014 16:18:10 +0000 (18:18 +0200)]
gesture: Remove gtk_gesture_get_last_event_type

11 years agogesture: make gtk_gesture_cancel_sequence() private
Carlos Garnacho [Tue, 6 May 2014 16:10:32 +0000 (18:10 +0200)]
gesture: make gtk_gesture_cancel_sequence() private

11 years agogesture: Make gtk_gesture_check() private
Carlos Garnacho [Tue, 6 May 2014 16:04:25 +0000 (18:04 +0200)]
gesture: Make gtk_gesture_check() private

11 years agodnd: Check on the right gesture sequence when starting the drag op
Carlos Garnacho [Tue, 6 May 2014 15:27:17 +0000 (17:27 +0200)]
dnd: Check on the right gesture sequence when starting the drag op

11 years agogesture: Simplify gesture/widget interaction public API
Carlos Garnacho [Tue, 6 May 2014 13:50:01 +0000 (15:50 +0200)]
gesture: Simplify gesture/widget interaction public API

The propagation phase property/methods in GtkEventController are gone,
This is now set directly on the GtkWidget add/remove controller API,
which has been made private.

The only public bit now are the new functions gtk_gesture_attach() and
gtk_gesture_detach() that will use the private API underneath.

All callers have been updated.

11 years agowidget: Keep a widget reference around _gtk_widget_run_controllers()
Carlos Garnacho [Tue, 6 May 2014 13:25:31 +0000 (15:25 +0200)]
widget: Keep a widget reference around _gtk_widget_run_controllers()

The widget may be destroyed within the loop, in reaction to the signals
sent by the controllers. Protect against that.

11 years agogesture: Add explanatory note in GtkGesture::end
Carlos Garnacho [Tue, 6 May 2014 13:23:24 +0000 (15:23 +0200)]
gesture: Add explanatory note in GtkGesture::end

Explain that this signal may be triggered by an extra touch that causes
the gesture to surpass GtkGesture:n-points.

11 years agogesture: Cancel sequences that make a gesture exceed the number of touches as they...
Carlos Garnacho [Tue, 6 May 2014 13:20:56 +0000 (15:20 +0200)]
gesture: Cancel sequences that make a gesture exceed the number of touches as they happen

This makes it possible to track those through gtk_gesture_handles_sequence(),
without guessing from last event type or sequence state.

11 years agowidget: Change slightly the gesture cancellation policy in a same widget
Carlos Garnacho [Tue, 6 May 2014 12:12:13 +0000 (14:12 +0200)]
widget: Change slightly the gesture cancellation policy in a same widget

Within a widget, if a gesture accepts a sequence, it would previously
cancel every other gesture that not in the same group. Change this to
only cancelling gestures that previously claimed the gesture, and let
gestures with state=NONE for that sequence remain like that.

This enables late recognition of gestures, even on the presence of
another gesture group that was more eager at claiming the gesture.

One usecase is user-defined panning gestures on scrolledwindows,
if ::capture-button-press is TRUE (eg. the default), the gesture is
claimed early in order to consume the button press, but that would
tipically make every other gesture group deny the sequence. With
this change, the pan gesture can keep state=NONE, and later claim
the sequence for itself if the panning gesture is recognized.

Also, do not propagate state=DENIED to every gesture in the widget,
that was unintended.

11 years agorotate: Ensure delta is between [0..2π]
Carlos Garnacho [Tue, 6 May 2014 09:43:31 +0000 (11:43 +0200)]
rotate: Ensure delta is between [0..2π]

11 years agopan: make the direction factor less narrow in v/h directions
Carlos Garnacho [Tue, 6 May 2014 09:39:15 +0000 (11:39 +0200)]
pan: make the direction factor less narrow in v/h directions

11 years agogesture: Handle GDK_TOUCH_CANCEL events
Carlos Garnacho [Mon, 5 May 2014 12:21:36 +0000 (14:21 +0200)]
gesture: Handle GDK_TOUCH_CANCEL events

The wayland windowing backend emits such events for instance, so
have gestures cancel the sequence as those events get through.

11 years agogesture: Protect against odd window hierarchies
Carlos Garnacho [Mon, 28 Apr 2014 10:53:36 +0000 (12:53 +0200)]
gesture: Protect against odd window hierarchies

If no match is found with the gesture widget when poking the event
window parents, bail out safely instead of falling in an infinite
loop. This was seen on Mutter.

11 years agoswipe: Don't emit ::swipe if there are still active touches
Carlos Garnacho [Thu, 17 Apr 2014 11:05:11 +0000 (13:05 +0200)]
swipe: Don't emit ::swipe if there are still active touches

Avoids sending spurious signals when an extra touch happens.

11 years agoPrevent subclassing of gestures
Matthias Clasen [Tue, 6 May 2014 02:40:18 +0000 (22:40 -0400)]
Prevent subclassing of gestures

For now, at least. We do this by hiding the instance and
class structures in private headers.

11 years agoGtkSpinButton: Don't leak the gestures
Matthias Clasen [Fri, 2 May 2014 02:05:42 +0000 (22:05 -0400)]
GtkSpinButton: Don't leak the gestures

11 years agoGtkWindow: Don't leak the gesture
Matthias Clasen [Fri, 2 May 2014 02:00:01 +0000 (22:00 -0400)]
GtkWindow: Don't leak the gesture

11 years agoGtkTreeView: Remove unused field
Matthias Clasen [Fri, 2 May 2014 01:53:35 +0000 (21:53 -0400)]
GtkTreeView: Remove unused field

11 years agogtk3-demo: Don't leak the color chooser
Matthias Clasen [Fri, 2 May 2014 01:01:33 +0000 (21:01 -0400)]
gtk3-demo: Don't leak the color chooser

11 years agoGtkColorPlane: Actually add the long press gesture
Matthias Clasen [Fri, 2 May 2014 01:00:28 +0000 (21:00 -0400)]
GtkColorPlane: Actually add the long press gesture

This was missed because gtk_widget_remove_controller silently
does nothing on unowned controllers.

11 years agoGtkButton: Don't leak the gesture
Matthias Clasen [Fri, 2 May 2014 00:58:13 +0000 (20:58 -0400)]
GtkButton: Don't leak the gesture

11 years agoForgotten file
Matthias Clasen [Fri, 2 May 2014 00:26:40 +0000 (20:26 -0400)]
Forgotten file

11 years agoGtkButton: Port to GtkGesture
Matthias Clasen [Fri, 2 May 2014 00:15:40 +0000 (20:15 -0400)]
GtkButton: Port to GtkGesture

Quick-and-dirty patch to use a GtkGestureSingle for both
button press/release and touch event handling.

11 years agowidget: remove GtkGesture-related signals
Carlos Garnacho [Thu, 10 Apr 2014 11:56:55 +0000 (13:56 +0200)]
widget: remove GtkGesture-related signals

The utility of those signals is somewhat dubious now that there is
gtk_gesture_group(), so make that the only way to coordinate gestures.
The cooperation model offered by gtk_gesture_group() is flexible
enough,

11 years agodocs: Add missing GtkEventController functions
Carlos Garnacho [Thu, 10 Apr 2014 11:46:03 +0000 (13:46 +0200)]
docs: Add missing GtkEventController functions

11 years agowidget: Add docs for GtkGesture-related API
Carlos Garnacho [Thu, 10 Apr 2014 11:45:38 +0000 (13:45 +0200)]
widget: Add docs for GtkGesture-related API

11 years agogesturesingle: doc fixes
Carlos Garnacho [Thu, 10 Apr 2014 11:45:19 +0000 (13:45 +0200)]
gesturesingle: doc fixes

11 years agozoom: doc fixes
Carlos Garnacho [Thu, 10 Apr 2014 11:45:06 +0000 (13:45 +0200)]
zoom: doc fixes

11 years agoswipe: doc fixes
Carlos Garnacho [Thu, 10 Apr 2014 11:45:00 +0000 (13:45 +0200)]
swipe: doc fixes

11 years agorotate: doc fixes
Carlos Garnacho [Thu, 10 Apr 2014 11:44:49 +0000 (13:44 +0200)]
rotate: doc fixes

11 years agopan: doc fixes
Carlos Garnacho [Thu, 10 Apr 2014 11:44:06 +0000 (13:44 +0200)]
pan: doc fixes

11 years agomultipress: doc fixes
Carlos Garnacho [Thu, 10 Apr 2014 11:43:53 +0000 (13:43 +0200)]
multipress: doc fixes

11 years agolongpress: doc fixes
Carlos Garnacho [Thu, 10 Apr 2014 11:43:41 +0000 (13:43 +0200)]
longpress: doc fixes

11 years agodrag: doc fixes
Carlos Garnacho [Thu, 10 Apr 2014 11:43:27 +0000 (13:43 +0200)]
drag: doc fixes

11 years agogesture: doc fixes
Carlos Garnacho [Thu, 10 Apr 2014 11:43:15 +0000 (13:43 +0200)]
gesture: doc fixes

11 years agoeventcontroller: doc fixes
Carlos Garnacho [Thu, 10 Apr 2014 11:43:01 +0000 (13:43 +0200)]
eventcontroller: doc fixes

11 years agodocs: Add missing controller/gesture docs
Carlos Garnacho [Wed, 9 Apr 2014 16:29:48 +0000 (18:29 +0200)]
docs: Add missing controller/gesture docs

11 years agopan: Add missing documentation
Carlos Garnacho [Wed, 9 Apr 2014 16:29:02 +0000 (18:29 +0200)]
pan: Add missing documentation

11 years agozoom: Add missing documentation
Carlos Garnacho [Wed, 9 Apr 2014 16:28:49 +0000 (18:28 +0200)]
zoom: Add missing documentation

11 years agorotate: Add missing documentation
Carlos Garnacho [Wed, 9 Apr 2014 16:28:43 +0000 (18:28 +0200)]
rotate: Add missing documentation

11 years agoswipe: Add missing documentation
Carlos Garnacho [Wed, 9 Apr 2014 16:28:27 +0000 (18:28 +0200)]
swipe: Add missing documentation

11 years agodrag: Add missing documentation
Carlos Garnacho [Wed, 9 Apr 2014 16:28:20 +0000 (18:28 +0200)]
drag: Add missing documentation

11 years agolongpress: Add missing documentation
Carlos Garnacho [Wed, 9 Apr 2014 16:28:12 +0000 (18:28 +0200)]
longpress: Add missing documentation

11 years agomultipress: Add missing documentation
Carlos Garnacho [Wed, 9 Apr 2014 16:28:03 +0000 (18:28 +0200)]
multipress: Add missing documentation

11 years agogesturesingle: Add missing documentation
Carlos Garnacho [Wed, 9 Apr 2014 16:27:50 +0000 (18:27 +0200)]
gesturesingle: Add missing documentation

11 years agogesture: Add missing documentation
Carlos Garnacho [Wed, 9 Apr 2014 16:27:42 +0000 (18:27 +0200)]
gesture: Add missing documentation

11 years agoeventcontroller: Add missing documentation
Carlos Garnacho [Wed, 9 Apr 2014 16:27:31 +0000 (18:27 +0200)]
eventcontroller: Add missing documentation

11 years agoenums: Add missing docs to controller/gesture enums
Carlos Garnacho [Wed, 9 Apr 2014 16:27:11 +0000 (18:27 +0200)]
enums: Add missing docs to controller/gesture enums

11 years agoRemove GtkPressAndHold
Carlos Garnacho [Tue, 8 Apr 2014 19:27:49 +0000 (21:27 +0200)]
Remove GtkPressAndHold

This is replaced by GtkGestureLongPress, and all its callers have
been updated to use the replacement.

11 years agoenums: Document GtkPropagationPhase
Carlos Garnacho [Tue, 8 Apr 2014 19:27:08 +0000 (21:27 +0200)]
enums: Document GtkPropagationPhase

11 years agospinbutton: increase/decrease value on upwards/downwards touch swipes
Carlos Garnacho [Tue, 8 Apr 2014 19:24:54 +0000 (21:24 +0200)]
spinbutton: increase/decrease value on upwards/downwards touch swipes

This is somewhat analogous to scroll events on pointer devices, the
greater the velocity, the faster the spinbutton spins.

11 years agoAdd GtkGesturePan
Carlos Garnacho [Tue, 8 Apr 2014 19:21:56 +0000 (21:21 +0200)]
Add GtkGesturePan

This gesture reports events on horizontal/vertical panning gestures.

11 years agorange: Replace GtkPressAndHold with GtkGestureLongPress
Carlos Garnacho [Tue, 8 Apr 2014 19:21:14 +0000 (21:21 +0200)]
range: Replace GtkPressAndHold with GtkGestureLongPress

11 years agoswipe: Add function to retrieve the current velocity
Carlos Garnacho [Tue, 8 Apr 2014 19:19:46 +0000 (21:19 +0200)]
swipe: Add function to retrieve the current velocity

This can be used to fetch the current velocity on update(), as opposed
to swipe() which happens after the sequence is finished.

11 years agocolorswatch: Replace GtkPressAndHold
Carlos Garnacho [Tue, 8 Apr 2014 19:18:38 +0000 (21:18 +0200)]
colorswatch: Replace GtkPressAndHold

GtkGestureLongPress and GtkGestureMultiPress are both used
to replace it.

11 years agocolorscale: Replace GtkPressAndHold with GtkLongPressGesture
Carlos Garnacho [Tue, 8 Apr 2014 19:17:54 +0000 (21:17 +0200)]
colorscale: Replace GtkPressAndHold with GtkLongPressGesture

11 years agocolorplane: Replace GtkPressAndHold with GtkLongPressGesture
Carlos Garnacho [Tue, 8 Apr 2014 19:17:00 +0000 (21:17 +0200)]
colorplane: Replace GtkPressAndHold with GtkLongPressGesture

11 years agoentry: Don't show text handles too eagerly on button press
Carlos Garnacho [Tue, 8 Apr 2014 19:15:06 +0000 (21:15 +0200)]
entry: Don't show text handles too eagerly on button press

Instead do so on button release, or after text selection dragging
starts.

11 years agolongpress: Ensure check() happens after cancel()
Carlos Garnacho [Tue, 8 Apr 2014 19:11:27 +0000 (21:11 +0200)]
longpress: Ensure check() happens after cancel()

And delegate on GtkGesture::check(), it does deal better with
extra fleeting touches.

11 years agolongpress: fix reentrancy on ::reset()
Carlos Garnacho [Tue, 8 Apr 2014 19:10:43 +0000 (21:10 +0200)]
longpress: fix reentrancy on ::reset()

11 years agogesturemultipress: fix reentrancy on ::reset()
Carlos Garnacho [Tue, 8 Apr 2014 19:09:44 +0000 (21:09 +0200)]
gesturemultipress: fix reentrancy on ::reset()

11 years agogesturesingle: check the current sequence before resetting the pressed button
Carlos Garnacho [Tue, 8 Apr 2014 19:06:39 +0000 (21:06 +0200)]
gesturesingle: check the current sequence before resetting the pressed button

11 years agoscrolledwindow: update to gesture widget-level API changes
Carlos Garnacho [Tue, 8 Apr 2014 19:05:00 +0000 (21:05 +0200)]
scrolledwindow: update to gesture widget-level API changes

11 years agowindow: update to gesture widget-level API changes
Carlos Garnacho [Tue, 8 Apr 2014 19:03:07 +0000 (21:03 +0200)]
window: update to gesture widget-level API changes

11 years agotreeview: update to gesture widget-level API changes
Carlos Garnacho [Tue, 8 Apr 2014 19:02:44 +0000 (21:02 +0200)]
treeview: update to gesture widget-level API changes

11 years agodrag: remove unused #define
Carlos Garnacho [Tue, 8 Apr 2014 19:01:47 +0000 (21:01 +0200)]
drag: remove unused #define

11 years agoeventcontroller: Add documentation blurb
Carlos Garnacho [Tue, 8 Apr 2014 19:01:13 +0000 (21:01 +0200)]
eventcontroller: Add documentation blurb

11 years agodnd: Update to gesture widget-level API changes
Carlos Garnacho [Tue, 8 Apr 2014 19:00:26 +0000 (21:00 +0200)]
dnd: Update to gesture widget-level API changes

11 years agodemo: Update to gesture widget-level API changes
Carlos Garnacho [Tue, 8 Apr 2014 18:59:16 +0000 (20:59 +0200)]
demo: Update to gesture widget-level API changes

11 years agowidget: refactor gesture integration
Carlos Garnacho [Tue, 8 Apr 2014 18:55:30 +0000 (20:55 +0200)]
widget: refactor gesture integration

Listen for notify::sequence-state-changed on the controller, so the
only way to manipulate a sequence state are gtk_gesture_set_sequence_state()
and gtk_gesture_set_state().

Also, make use of gesture groups, so the sequence state is set at once
on all gestures pertaining to a single group. Within a widget, if a sequence
is claimed on one group, it is made to be denied on every other group.

11 years agogesture: Add grouping API
Carlos Garnacho [Tue, 8 Apr 2014 18:47:38 +0000 (20:47 +0200)]
gesture: Add grouping API

This API eliminates the need for overriding
GtkWidget::sequence-state-changed virtually everywhere. Grouped
gestures share common states for a same GdkEventSequence, so the
state of sequences stay in sync across those.

11 years agogesture: Add gtk_gesture_set_state() helper.
Carlos Garnacho [Tue, 8 Apr 2014 18:46:26 +0000 (20:46 +0200)]
gesture: Add gtk_gesture_set_state() helper.

This function sets the state on all sequences where it actually
can, just a helper function to avoid iterating over sequences
yourself.

11 years agogesture: emit the current state on ::sequence-state-changed
Carlos Garnacho [Tue, 8 Apr 2014 18:45:18 +0000 (20:45 +0200)]
gesture: emit the current state on ::sequence-state-changed

11 years agogesture: group continue conditions together
Carlos Garnacho [Tue, 8 Apr 2014 18:44:38 +0000 (20:44 +0200)]
gesture: group continue conditions together

11 years agogesture: return TRUE if the sequence state was already set
Carlos Garnacho [Tue, 8 Apr 2014 18:43:52 +0000 (20:43 +0200)]
gesture: return TRUE if the sequence state was already set

11 years agogesture: fix compiler warning
Carlos Garnacho [Tue, 8 Apr 2014 18:41:09 +0000 (20:41 +0200)]
gesture: fix compiler warning

11 years agogesture: ignore events if now widget window was found
Carlos Garnacho [Tue, 8 Apr 2014 18:39:44 +0000 (20:39 +0200)]
gesture: ignore events if now widget window was found

11 years agoeventcontroller: Add propagation-phase property
Carlos Garnacho [Tue, 8 Apr 2014 18:25:53 +0000 (20:25 +0200)]
eventcontroller: Add propagation-phase property

This is so we don't have to specify the capture phase for
every controller. The default "bubble" value will be sane
on most situations.

11 years agotreeview: remove superfluous GTK+ grabs
Carlos Garnacho [Tue, 8 Apr 2014 18:24:30 +0000 (20:24 +0200)]
treeview: remove superfluous GTK+ grabs

11 years agotextview: remove superfluous GTK+ grabs
Carlos Garnacho [Tue, 8 Apr 2014 18:23:43 +0000 (20:23 +0200)]
textview: remove superfluous GTK+ grabs

11 years agoiconview: remove superfluous GTK+ grabs
Carlos Garnacho [Tue, 8 Apr 2014 18:23:00 +0000 (20:23 +0200)]
iconview: remove superfluous GTK+ grabs

11 years agocombobox: remove superfluous GTK+ grabs
Carlos Garnacho [Tue, 8 Apr 2014 18:21:50 +0000 (20:21 +0200)]
combobox: remove superfluous GTK+ grabs

11 years agocellrendereraccel: remove superfluous GTK+ grabs
Carlos Garnacho [Tue, 8 Apr 2014 18:21:17 +0000 (20:21 +0200)]
cellrendereraccel: remove superfluous GTK+ grabs

11 years agoRevert "gtk: Remove propagation limit of captured events on the grab widget"
Carlos Garnacho [Thu, 3 Apr 2014 12:44:58 +0000 (14:44 +0200)]
Revert "gtk: Remove propagation limit of captured events on the grab widget"

This reverts commit 6511f411955adba4f960b8b07d39b93785afe33e.

11 years agolongpress: Use xsettings to determine long press duration
Carlos Garnacho [Mon, 31 Mar 2014 10:27:43 +0000 (12:27 +0200)]
longpress: Use xsettings to determine long press duration

GtkSettings::gtk-long-press-time is used to this effect.

11 years agosettings: Add gtk-long-press-time setting
Carlos Garnacho [Mon, 31 Mar 2014 10:22:11 +0000 (12:22 +0200)]
settings: Add gtk-long-press-time setting

This setting determines the duration of a button/touch press to
be considered a long press.

11 years agowindow: Use gestures for window moving/resizing
Carlos Garnacho [Fri, 28 Mar 2014 14:44:11 +0000 (15:44 +0100)]
window: Use gestures for window moving/resizing

A multipress gesture is used to control all this, replacing
single/double click custom code, and triggering window dragging
when the multipress is stopped, yet active (ie. the sequence remains
pressed).